/**   
 * @Title: ICityService.java
 * @Package com.cityoneyes.service
 * @Description: TODO
 * @author Rick
 * @date 2011-8-4 下午09:41:21
 * @version V1.0   
 */
package com.cityoneyes.service;

import java.util.List;

import com.cityoneyes.bean.Area;
import com.cityoneyes.bean.City;
import com.cityoneyes.bean.Position;

/**
 * @ClassName: ICityService
 * @Description: 城市相关的Service
 * @author Rick
 * @date 2011-8-4 下午09:41:21
 */
public interface ICityService extends IBaseService {

	/**
	 * @Title: init
	 * @Description: 初始化数据
	 * @return
	 * @return List<City>
	 */
	public List<City> init();
	
	/**
	 * @Title: getAllCity
	 * @Description: 获取城市列表
	 * @return
	 * @return List<City>
	 */
	public List<City> getAllCity();
	
	/**
	 * @Title: getCityById
	 * @Description: 根据ID查找城市
	 * @param id
	 * @return
	 * @return City
	 */
	public City getCityById(int id);
	
	/**
	 * @Title: getCityAreas
	 * @Description: 根据ID获取所有区列表
	 * @param cityId
	 * @return
	 * @return List<Area>
	 */
	public List<Area> getCityAreas(int cityId);
	
	/**
	 * @Title: getAreaPositions
	 * @Description: 根据区ID获取所有地段列表
	 * @param areaId
	 * @return
	 * @return List<Position>
	 */
	public List<Position> getAreaPositions(int areaId);
}
